package com.fy.dishimei.controller;

import com.fy.dishimei.common.utils.PageUtils;
import com.fy.dishimei.common.utils.R;
import com.fy.dishimei.service.SysUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
@RequestMapping("sysUser")
public class SysUserController {

    @Autowired
    private SysUserService sysUserService;

    /**
     * 列表
     */
    @RequestMapping("/list")
    public R list(@RequestParam Map<String, String> params){
        PageUtils page = sysUserService.queryPage(params);

        return R.ok().put("page", page);
    }

}
